package com.koron.css2.newProjectCenter.vo.query;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 返回给前端展示的参数
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PjQueryContractVo extends PjQueryBaseVo {
    private String pjTypeName;  // 业务类别
    private String contractTypeName;    // 合同类别
    private String contractName;    // 合同名称
    private String contractNo;      // 合同号
    private String contractAmount;  // 合同金额
    private String agentName;       // 代理人
    private String signDate;        // 签订日期

    public void setPjTypeName(String pjTypeName) {
        switch (pjTypeName) {
            case "1":
                this.pjTypeName = "用水报装-居民";
                break;
            case "2":
                this.pjTypeName = "水表迁移";
                break;
            case "3":
                this.pjTypeName = "水表扩缩";
                break;
            case "4":
                this.pjTypeName = "管道维修";
                break;
            case "5":
                this.pjTypeName = "用水报装-企业";
                break;
            default:
                this.pjTypeName = "未知";
                break;
        }
    }

    public void setContractTypeName(String contractTypeName) {
        switch (contractTypeName) {
            case "2":
                this.contractTypeName = "电子供水合同";
                break;
            case "5":
                this.contractTypeName = "普通施工合同";
                break;
            case "4":
                this.contractTypeName = "电子施工合同";
                break;
            case "3":
                this.contractTypeName = "普通供水合同";
                break;
            default:
                this.contractTypeName = "未知";
                break;
        }
    }
}